package com.sright.bcard.enterprise.biz.manager;

import com.sright.bcard.common.service.share.dto.page.PageDTO;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.enterprise.dal.entity.AddressDO;
import com.sright.bcard.common.service.share.dto.enterprise.AddressDTO;

import java.util.List;

public interface AddressManager {

    /**
     * 分页获取企业地址列表
     * @param pageParamRequest
     * @return
     */
    PageDTO<AddressDTO> addressList(PageParamRequest pageParamRequest);

    /**
     * 新增地址信息
     * @param addressDTO
     * @return
     */
    Long addAddress(AddressDTO addressDTO);

    /**
     * 修改地址信息
     * @param addressDTO
     * @return
     */
    Boolean updateAddress(AddressDTO addressDTO);

    /**
     * 删除地址
     * @param ids
     * @return
     */
    Boolean deleteAddress(List<Long> ids);

    /**
     * 地址列表
     * @param enterpriseId
     * @return
     */
    List<AddressDO> getList(Long enterpriseId);
}
